<template>
	<view class="gui-coupons gui-flex gui-rows gui-nowrap">
		<view class="gui-coupons-left gui-flex1 gui-flex gui-rows gui-nowrap gui-align-items-center"
			:style="{backgroundColor:coupon.ltBg, height:coupon.height}">
			<view class="gui-coupons-left-number">
				<view class="gui-flex gui-rows gui-nowrap gui-justify-content-center gui-align-items-center">
					<text class="gui-h4" :style="{color:coupon.color}">{{coupon.unit}}</text>
					<text class="gui-h3 gui-bold" :style="{color:coupon.color}">{{coupon.number}}</text>
				</view>
				<text class="gui-text-small gui-block-text gui-text-center"
					:style="{color:coupon.color}">{{coupon.txt}}</text>
			</view>
			<view class="gui-coupons-left-body">
				<text class="gui-block-text gui-h6 gui-primary-color">{{coupon.title}}</text>
				<view class="gui-flex gui-rows gui-nowrap gui-space-between gui-align-items-end margin-top">
					<text class="gui-block-text gui-text-small gui-color-gray">{{coupon.desc}}</text>
					<text class="coupons-left-btn" :style="{backgroundColor:coupon.btnBg}">{{coupon.btn}}</text>
				</view>
				
			</view>
		</view>
	
	</view>
</template>
<script>
	export default {
		name: "gui-coupons",
		props: {
			coupon: {
				type: Object,
				default: function() {
					return {}
				}
			}
		}
	}
</script>
<style scoped>
	.gui-coupons {
		border-top-left-radius: 10rpx;
		border-bottom-left-radius: 10rpx;
	}

	.gui-coupons-left {
		width: 500rpx;
		height: 150rpx;
		padding-right: 10rpx;
		border-radius: 8rpx;
		position: relative;
	}

	.gui-coupons-left-number {
		width: 168rpx;
		border-right: 1px dashed #D2D2D2;
	}

	.gui-coupons-left-body {
		width: 480rpx;
		margin-left: 25rpx;
	}
	.margin-top{
		margin-top: 10rpx;
	}
	.coupons-left-btn{
		font-size: 22rpx;
		color: #FFFFFF;
		line-height: 50rpx;
		border-radius: 30rpx;
		padding: 0 20rpx;
		/* background-color: #ff496c; */
	}
</style>
